<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="admin/include :: header('新增商品')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-menu-edit" th:object="${steamBalance}">
			<input name="id" id="id"  type="hidden" th:field="*{id}"   />
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">商品名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="name" id="name" th:field="*{name}" required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">商品链接：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="url" id="url" th:field="*{url}" required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">成本价：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="price" id="price" th:field="*{costPrice}" required="required|number">
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="admin/include :: footer" />
	 <script>
        var prefix = ctx + "admin/steam/balance";
		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/edit", $('#form-menu-edit').serialize());
			}
		}
    </script>
</body>
</html>
